package nbcb;

import java.util.Scanner;

public class F {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());
        int[] ans;
        char[] chars;
        for (int i = 0; i < n; i++) {
            ans = new int[26];
            chars = sc.nextLine().toLowerCase().toCharArray();
            for (char c : chars) {
                if (c == ' ') continue;
                ans[c - 'a']++;
            }
            System.out.println("a:" + ans[0]);
            System.out.println("e:" + ans['e' - 'a']);
            System.out.println("i:" + ans['i' - 'a']);
            System.out.println("o:" + ans['o' - 'a']);
            System.out.println("u:" + ans['u' - 'a']);
            if (i != n - 1) System.out.println();
        }
    }
}
